import java.io.Serializable;

public class Ticket implements Serializable {
    private String id;
    private String scheduleId;
    private String movieId;
    private String seatNumber;
    private double price;
    private String username;
    private String purchaseTime;

    public Ticket() {}

    public Ticket(String id, String scheduleId, String movieId, String seatNumber, double price, String username, String purchaseTime) {
        this.id = id;
        this.scheduleId = scheduleId;
        this.movieId = movieId;
        this.seatNumber = seatNumber;
        this.price = price;
        this.username = username;
        this.purchaseTime = purchaseTime;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(String scheduleId) {
        this.scheduleId = scheduleId;
    }

    public String getMovieId() {
        return movieId;
    }

    public void setMovieId(String movieId) {
        this.movieId = movieId;
    }

    public String getSeatNumber() {
        return seatNumber;
    }

    public void setSeatNumber(String seatNumber) {
        this.seatNumber = seatNumber;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPurchaseTime() {
        return purchaseTime;
    }

    public void setPurchaseTime(String purchaseTime) {
        this.purchaseTime = purchaseTime;
    }
}
